Invalid Window Type for this Action

Symptom

When publishing to HTML, an error is reported of the type:

Invalid window type for this action.
Visio has reported an unanticipated exception when exporting to <filename>.html
System.Runtime.InteropServices.COMException (0x86DB08A5):
Invalid window type for this action.
at Microsoft.Office.Interop.Visio.WindowClass.set_PageFromName(String )
at Triaster.ProcessNavigator.Common.ProcessObjects.PageBase.Show(Boolean blnActivate)
at Triaster.ProcessNavigator.Common.ProcessObjects.PageBase.CreateHTMLFile(String strMultiMapRoot, String strTargetRoot, enumVisioVersion lngVisioVersion, Boolean blnUseSubFolders, Boolean blnUseVisio2002MouseOver, Boolean blnUseDescriptionMouseOver, Boolean blnConvertHyperlinkCircleLinks, String strHTMLMapName)
=== Finish For Triaster Support ===

Possible Cause

The error suggests that the associated Visio file has been saved in a state with an inappropriate window open (such as a ShapeSheet window).

Solution

Enable SVG graphics output from the process Library.

  1. Open the associated Visio file. (It should have the same file name as the HTML file cited in the error message, but will be stored in a different location.)
  2. From Visio's View tab, click Switch Windows.
  3. Switch Window dialog
  4. Is there more than one window listed? If so, select any such windows to bring them to the fore, and close them. The only window that should be listed is the main drawing window ('Drawing1' in the above examples).
  5. Save and close the file.

The file should now publish, assuming no other problems.